763fc2ae2c9f1cd3d8975afab30547dc12b34f0f,plugins/git4idea/src/git4idea/history/GitHistoryUtils.java,MyTokenAccumulator,processResult,#String#,235

Before Change


      final int commentEndIdx = commentAndPath.indexOf(ourCommentEndMark);
      if (commentEndIdx > -1) {
        result.add(replaceDelimitersByNewlines(commentAndPath.substring(0, commentEndIdx)));      // comment
        result.add(replaceDelimitersByNewlines(commentAndPath.substring(commentEndIdx + ourCommentEndMark.length())));  // path
      } else {
        exceptions.add(new VcsException("git log output is uncomplete"));
        result.add(replaceDelimitersByNewlines(commentAndPath));

After Change



      final String start = line.substring(0, commentStartIdx);
      final java.util.StringTokenizer tk = new java.util.StringTokenizer(start, TOKEN_DELIMITER, false);
      final List<String> result = new ArrayList<String>();
      while (tk.hasMoreElements()) {
        final String token = tk.nextToken();
        result.add(token);
      }
      final LowLevelRevisionDetails revisionDetails = LowLevelRevisionDetails.fillDetails(result);
      
      final String commentAndPath = line.substring(commentStartIdx + ourCommentStartMark.length());
      final int commentEndIdx = commentAndPath.indexOf(ourCommentEndMark);
      if (commentEndIdx > -1) {
        revisionDetails.comment = replaceDelimitersByNewlines(commentAndPath.substring(0, commentEndIdx));
        revisionDetails.path = replaceDelimitersByNewlines(commentAndPath.substring(commentEndIdx + ourCommentEndMark.length()));
      } else {
        exceptions.add(new VcsException("git log output is uncomplete"));
        revisionDetails.comment = replaceDelimitersByNewlines(commentAndPath);